import java.util.ArrayList;
import java.util.List;


public class Devide {

	public static void main(String[] args) {
		String aa ="2a.war";
		String bb ="4a.war";
		
		List<String> jjj = new ArrayList<String>();
		jjj.add(aa);
		jjj.add(bb);
		String cc = jjj.get(0);
		System.out.println(cc);
		String[] mmm = cc.split("\\.");
		System.out.println(mmm.length);
		System.out.println(mmm[0]);

	}

}
